﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WpfAGVSystem.Migrations
{
    public partial class mzyh4 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Warehouse_Entity",
                columns: table => new
                {
                    id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    Flow = table.Column<int>(type: "int", nullable: false),
                    Area = table.Column<int>(type: "int", nullable: false),
                    Batch = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    IsHave = table.Column<bool>(type: "bit", nullable: false),
                    IsCreat = table.Column<bool>(type: "bit", nullable: false),
                    MaterialName = table.Column<int>(type: "int", nullable: false),
                    Deviceid = table.Column<int>(type: "int", nullable: false),
                    PickAreaType = table.Column<int>(type: "int", nullable: false),
                    PutAreaType = table.Column<int>(type: "int", nullable: false),
                    Station = table.Column<int>(type: "int", nullable: false),
                    PreStation = table.Column<int>(type: "int", nullable: false),
                    BackStation = table.Column<int>(type: "int", nullable: false),
                    OptronicsIO = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    LigthIO = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    GetHeight = table.Column<float>(type: "real", nullable: false),
                    PutHeight = table.Column<float>(type: "real", nullable: false),
                    Unwind_Full = table.Column<int>(type: "int", nullable: false),
                    Unloading_Full = table.Column<int>(type: "int", nullable: false),
                    UnloadingTobeBake = table.Column<int>(type: "int", nullable: false),
                    Unwind_Null = table.Column<int>(type: "int", nullable: false),
                    Unloading_Null = table.Column<int>(type: "int", nullable: false),
                    IsEnable = table.Column<bool>(type: "bit", nullable: false),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    GoodX = table.Column<int>(type: "int", nullable: false),
                    GoodY = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Warehouse_Entity", x => x.id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Warehouse_Entity");
        }
    }
}
